package controllers;

import models.User;
import play.jobs.Job;
import play.jobs.OnApplicationStart;
import play.test.Fixtures;

@OnApplicationStart
public class BootStrapJob extends Job {
	
	@Override
	public void doJob() throws Exception {
		if (User.count() == 0) {
			// No user created yet, create default one
			Fixtures.load("data.yml");
		}
	}
}
